package ru.spb.osll.myfit.wikiverifier.result;

import ru.spb.osll.myfit.common.Table;
import ru.spb.osll.myfit.wikiverifier.WikiVerifierException;

public class TableVerificationResult {
	private VerificationResultType m_result;
	private Table m_table = null;
	private Table m_suggestion = null;
	private WikiVerifierException m_exception = null;
	private String m_message = null;

	public TableVerificationResult(VerificationResultType result) {
		m_result = result;
	}

	public TableVerificationResult(VerificationResultType result, Table table, String message) {
		m_result = result;
		m_table = table;
		m_message = message;
	}

	public TableVerificationResult(VerificationResultType result, Table table,
			WikiVerifierException exception) {
		m_result = result;
		m_table = table;
		m_exception = exception;
	}

	public void setSuggestion(Table suggestion) {
		m_suggestion = suggestion;
	}

	public Table getSuggestion() {
		return m_suggestion;
	}

	public Table getTable() {
		return m_table;
	}

	public VerificationResultType getResult() {
		return m_result;
	}

	public WikiVerifierException getException() {
		return m_exception;
	}
	
	public String getMessage() {
		return m_message;
	}

}
